import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;


public class Player2Test {

	public static void main(String[] args)  throws IOException{
		String clientParam;
		DatagramSocket socket = new DatagramSocket();
		byte[] buf = new byte[1024];
		InetAddress a = InetAddress.getByName("localhost");
		//buf=clientParam.getBytes();
		DatagramPacket p = new DatagramPacket
		(buf, buf.length, a, 6789);
		for(int i=300;i<350;i++){
			clientParam="2~" + i + ":" + i;
			buf=clientParam.getBytes();
			p = new DatagramPacket
					(buf, buf.length, a, 6789);
			socket.send(p);
		}
		//p = new DatagramPacket(buf, buf.length);
		//socket.receive(p);
		//String data = new String(p.getData(),0, p.getLength());
		//System.out.println("Server:" + data);
	}
}
